import req1 from '@/lib/req1'
//获取计划列表
export function perListAPI(){
    return req1.get('/train/planList')
}
//新增计划
export function addPerInsertAPI({theme,type,startDate,endDate,content}){
return req1.post('/train/planAdd',{theme,type,startDate,endDate,content})
}
//修改计划
export function perUpdateAPI({id,theme,type,startDate,endDate,content}){
  return req1.put('/train/planUpdate',{id,theme,type,startDate,endDate,content})
}
//删除计划
export function perDeleteAPI(id){
    id = id.join()
    return req1.delete('/train/planDelete',{id})
}
//搜索
export function perSeach({theme}){
    return req1.get('/train/planLike',{theme})
}
